package com.user.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.common.enums.sys.DelFlagEnum;
import com.common.enums.user.*;
import com.core.domain.CorePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: stefanie-zy
 * @time: 2024/1/24-15:51
 * @description: Po-用户
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_user")
@Schema(name = "Po-用户")
public class UserPo extends CorePo implements Serializable {
    @Serial
    private static final long serialVersionUID = 64514329398576313L;

    @Schema(description = "姓名")
    private String userName;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "登录名")
    private String loginName;

    @Schema(description = "微信名")
    private String wechat;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "密码等级")
    private PasswordLevelEnum passwordLevel;

    @Schema(description = "密码错误次数")
    private Integer wrPasswordNum;

    @Schema(description = "用户类型")
    private UserTypeEnum type;

    @Schema(description = "手机号")
    private String phoneNumber;

    @Schema(description = "电子邮箱")
    private String email;

    @Schema(description = "性别")
    private SexEnum sex;

    @Schema(description = "身份证")
    private String idCard;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "头像")
    private String icoUrl;

    @Schema(description = "状态")
    private UserStatusEnum status;

    @Schema(description = "删除状态")
    private DelFlagEnum delFlag;

    @Schema(description = "登录状态")
    private LoginStatusEnum loginStatus;

    @Schema(description = "登录ip")
    private String loginIp;

    @Schema(description = "登录时间")
    private Date loginTime;

    @Schema(description = "token")
    private String token;
}
